
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var App_Schema = new Schema({
    app_ame: String,
    username: String,
    app_type: String,
    down_path: String,
    down_size: String,
    version: String,
    version_des: String,
    img: String,
    pictures: [{url: String, width: Number, height: Number}], // 配图
    thumbnails: [{url: String, width: Number, height: Number}], // 缩略图
    create_date: {type: Date, default: Date.now}, //创建时间
    meta: {
        votes: Number, //顶
        favs: Number  //收藏
    }
});


var App = mongoose.model("applist", App_Schema);
exports.App = App;
